﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Shapes;
using System.Collections;

namespace CooStationsToolsNew
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        /// <summary>
        /// CFY的元素存储数组
        /// </summary>
        public static DataTable dt;
        /// <summary>
        /// 所有图片的数组
        /// </summary>
        public static IList<Image> piclist = new List<Image>();
        /// <summary>
        /// 所有矩形的数组
        /// </summary>
        public static IList<Rectangle> rectlist = new List<Rectangle>();
        /// <summary>
        /// 所有Div的数组
        /// </summary>
        public static IList<Canvas> divlist = new List<Canvas>();
        /// <summary>
        /// CFYEVENT的存储数组
        /// </summary>
        public static DataTable eventdt;
        /// <summary>
        /// 用于存储所有
        /// </summary>
        public static IList<List<Model.ClipAction>> AddClipList = new List<List<Model.ClipAction>>();
        /// <summary>
        /// 项目名称
        /// </summary>
        public static string proName = "";
        /// <summary>
        /// 项目路径
        /// </summary>
        public static string proPath = "";
        /// <summary>
        /// 项目类型
        /// </summary>
        public static string proType = "";
        /// <summary>
        /// 项目宽
        /// </summary>
        public static string proWidth = "";
        /// <summary>
        /// 项目高
        /// </summary>
        public static string proHeight = "";
        /// <summary>
        /// 程序所在文件目录
        /// </summary>
        public static string appPath = AppDomain.CurrentDomain.BaseDirectory;

        public static DataTable itemDt = null;//new DataTable();
        public static DataTable scriptdt = null;//new DataTable();

        public static string pageName;
        /// <summary>
        /// 页面的list
        /// </summary>
        public static IList<object> Pagelist = new List<object>();

        public static Model.CfyPage cpage;
        /// <summary>
        /// div的list
        /// </summary>
        public static IList<Canvas> canList = new List<Canvas>();
        /// <summary>
        /// a标签的list
        /// </summary>
        public static IList<object> ActionList = new List<object>();
        /// <summary>
        /// 文本的list
        /// </summary>
        public static IList<TextBlock> textlist = new List<TextBlock>();

        public static string NewImage = "";
        public static string NewRect = "";
        public static ArrayList ContentList = new ArrayList();
        public static List<object[]> MiniList = new List<object[]>();
        public static ArrayList itemList = new ArrayList();
        public static string Cp_Name = null;
        public static string Cp_Ip = null;
        public static int Cp_Port;
        public static double workSize_int = 0;
        //保存选中控件
        public static object uiobj = null;
        public static object uilockobj = null;
    }
}
